package com.dm.cloud.core.service.user;

import com.dm.cloud.core.mode.UserMode;

public interface CurrentUserService {

    /**
     * 获取用户
     * @return
     */
    public UserMode getCurrentUser();

    /**
     * 获取用户ID
     */
    public String uid();

    /**
     * 获取用户名
     */
    public String uname();

    /**
     * 获取中文名
     * @return
     */
    public String chineseName();

    boolean hasPermissions(String[] permissions);

    boolean hasRoles(String[] roles);

}
